package org.dingyom.gift.clients;

import feign.hystrix.FallbackFactory;
import org.dingyom.gift.util.AjaxResult;

public class EmloyeeClientFallbackFactory implements FallbackFactory<EmployeeClient> {
    @Override
    public EmployeeClient create(Throwable cause) {
        return new EmployeeClient() {
            @Override
            public AjaxResult getByLoginId(Long loginId) {
                cause.printStackTrace();
                return null;
            }
        };
    }
}
